package org.jsola.hr.dto;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.hibernate.validator.constraints.Length;
import org.jsola.core.dto.BaseDTO;

import java.util.Date;
import javax.validation.constraints.NotNull;

import static org.jsola.hr.example.EmpWorkExample.E_COMPANY;
import static org.jsola.hr.example.EmpWorkExample.E_COMPANY_ID;
import static org.jsola.hr.example.EmpWorkExample.E_EMP_ID;
import static org.jsola.hr.example.EmpWorkExample.E_END_TIME;
import static org.jsola.hr.example.EmpWorkExample.E_LEAVE_REASON;
import static org.jsola.hr.example.EmpWorkExample.E_LEAVE_SALARY;
import static org.jsola.hr.example.EmpWorkExample.E_POSITION;
import static org.jsola.hr.example.EmpWorkExample.E_REMARK;
import static org.jsola.hr.example.EmpWorkExample.E_START_TIME;
import static org.jsola.hr.example.EmpWorkExample.E_WIT_NAME;
import static org.jsola.hr.example.EmpWorkExample.E_WIT_PHONE;
import static org.jsola.hr.example.EmpWorkExample.M_COMPANY_ID_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_COMPANY_ID_NOT_NULL;
import static org.jsola.hr.example.EmpWorkExample.M_COMPANY_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_EMP_ID_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_LEAVE_REASON_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_POSITION_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_REMARK_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_WIT_NAME_MAX;
import static org.jsola.hr.example.EmpWorkExample.M_WIT_PHONE_MAX;
import static org.jsola.hr.example.EmpWorkExample.N_COMPANY;
import static org.jsola.hr.example.EmpWorkExample.N_COMPANY_ID;
import static org.jsola.hr.example.EmpWorkExample.N_EMP_ID;
import static org.jsola.hr.example.EmpWorkExample.N_END_TIME;
import static org.jsola.hr.example.EmpWorkExample.N_LEAVE_REASON;
import static org.jsola.hr.example.EmpWorkExample.N_LEAVE_SALARY;
import static org.jsola.hr.example.EmpWorkExample.N_POSITION;
import static org.jsola.hr.example.EmpWorkExample.N_REMARK;
import static org.jsola.hr.example.EmpWorkExample.N_START_TIME;
import static org.jsola.hr.example.EmpWorkExample.N_WIT_NAME;
import static org.jsola.hr.example.EmpWorkExample.N_WIT_PHONE;

/**
 * 员工工作经历
 *
 * @author zhr
 */
@EqualsAndHashCode(callSuper = true)
@ApiModel(description = "新增【员工工作经历】的参数")
@Data
public class EmpWorkAddDTO extends BaseDTO {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(notes = N_EMP_ID, example = E_EMP_ID)
    @Length(max = 32, message = M_EMP_ID_MAX)
    private String empId;

    @ApiModelProperty(notes = N_COMPANY, example = E_COMPANY)
    @Length(max = 255, message = M_COMPANY_MAX)
    private String company;

    @ApiModelProperty(notes = N_POSITION, example = E_POSITION)
    @Length(max = 255, message = M_POSITION_MAX)
    private String position;

    @ApiModelProperty(notes = N_START_TIME, example = E_START_TIME)
    private Date startTime;

    @ApiModelProperty(notes = N_END_TIME, example = E_END_TIME)
    private Date endTime;

    @ApiModelProperty(notes = N_LEAVE_REASON, example = E_LEAVE_REASON)
    @Length(max = 255, message = M_LEAVE_REASON_MAX)
    private String leaveReason;

    @ApiModelProperty(notes = N_LEAVE_SALARY, example = E_LEAVE_SALARY)
    private Integer leaveSalary;

    @ApiModelProperty(notes = N_REMARK, example = E_REMARK)
    @Length(max = 2147483647, message = M_REMARK_MAX)
    private String remark;

    @ApiModelProperty(notes = N_WIT_NAME, example = E_WIT_NAME)
    @Length(max = 255, message = M_WIT_NAME_MAX)
    private String witName;

    @ApiModelProperty(notes = N_WIT_PHONE, example = E_WIT_PHONE)
    @Length(max = 255, message = M_WIT_PHONE_MAX)
    private String witPhone;

    @ApiModelProperty(notes = N_COMPANY_ID, example = E_COMPANY_ID)
    @Length(max = 32, message = M_COMPANY_ID_MAX)
    private String companyId;


}

